<html>
<head><meta charset="utf-8"><title>How do I register a lint alias? · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20register.20a.20lint.20alias.3F.html">How do I register a lint alias?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="230533476"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20register%20a%20lint%20alias%3F/near/230533476" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20register.20a.20lint.20alias.3F.html#230533476">(Mar 16 2021 at 15:31)</a>:</h4>
<p>I only see register_group_alias on <a href="https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint/context/struct.LintStore.html">https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint/context/struct.LintStore.html</a>, not register_lint_alias.</p>



<a name="230534530"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20register%20a%20lint%20alias%3F/near/230534530" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20register.20a.20lint.20alias.3F.html#230534530">(Mar 16 2021 at 15:36)</a>:</h4>
<p>hmm, I don't see a way to do this even reading the source</p>



<a name="230534538"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20register%20a%20lint%20alias%3F/near/230534538" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20register.20a.20lint.20alias.3F.html#230534538">(Mar 16 2021 at 15:36)</a>:</h4>
<p>trying to add it now</p>



<a name="230541572"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20register%20a%20lint%20alias%3F/near/230541572" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20register.20a.20lint.20alias.3F.html#230541572">(Mar 16 2021 at 16:09)</a>:</h4>
<p><span class="user-mention" data-user-id="232545">@Joshua Nelson</span> <code>register_renamed</code>?</p>



<a name="230541618"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20register%20a%20lint%20alias%3F/near/230541618" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20register.20a.20lint.20alias.3F.html#230541618">(Mar 16 2021 at 16:09)</a>:</h4>
<p><span class="user-mention silent" data-user-id="120518">Eric Huss</span> <a href="#narrow/stream/182449-t-compiler.2Fhelp/topic/How.20do.20I.20register.20a.20lint.20alias.3F/near/230541572">said</a>:</p>
<blockquote>
<p><span class="user-mention silent" data-user-id="232545">Joshua Nelson</span> <code>register_renamed</code>?</p>
</blockquote>
<p>that warns about the old lint name</p>



<a name="230541638"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20register%20a%20lint%20alias%3F/near/230541638" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20register.20a.20lint.20alias.3F.html#230541638">(Mar 16 2021 at 16:09)</a>:</h4>
<p>one sec, about to make a PR explaining why I want this</p>



<a name="230541646"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20register%20a%20lint%20alias%3F/near/230541646" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20register.20a.20lint.20alias.3F.html#230541646">(Mar 16 2021 at 16:09)</a>:</h4>
<p>Oh, I see</p>



<a name="230542751"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20register%20a%20lint%20alias%3F/near/230542751" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20register.20a.20lint.20alias.3F.html#230542751">(Mar 16 2021 at 16:14)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/pull/83203">https://github.com/rust-lang/rust/pull/83203</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>